package demo

import (
	"gin_study/res"

	"github.com/gin-gonic/gin"
)

func ResponseDiy() {
	gin.SetMode("release")
	Router := gin.Default()

	Router.GET("/response", func(c *gin.Context) {
		res.Ok(c, map[string]any{"name": "zhangsan", "age": 18}, "操作成功")
	})

	Router.Run(":8080")

}
